package org.crc.myvhrb.controller;

import org.crc.myvhrb.mapper.HrMapper;
import org.crc.myvhrb.model.Hr;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CRC
 * 2021/8/1
 */
@RestController
public class HelloController {

    @Autowired
    HrMapper hrMapper;


    @GetMapping("/hello")
    public String hello(){
        Hr hr = hrMapper.selectByPrimaryKey(3);
        System.out.println(hr);
        return "11";
    }
    @GetMapping("/employee/basic/hello")
    public String hello1(){
        return "/employee/basic/hello";
    }

    @GetMapping("/employee/advanced/hello")
    public String hello2(){
        return "/employee/advanced/hello";
    }
    @GetMapping("/employee/hr/hello")
    public String hello3(){
        return "/employee/hr/hello";
    }

}
